package com.weaver.qfengx.api.qihoo;

import java.util.Map;

/**
 * 扫描结果类
 */
public class FileScannerResult {

    private String response;

    private int httpCode;

    private int level;

    private int ret;

    private String msg;

    private String data;

    private String malware;

    private String exts;

    private boolean virus;


    /**
     * 网络请求是否成功
     * @return
     */
    public boolean isHttpOK() {
        return httpCode == 200;
    }

    /**
     * 是否为病毒
     * @return
     */
    public boolean isVirus() {
        return virus;
    }

    public int getHttpCode() {
        return httpCode;
    }

    public int getLevel() {
        return level;
    }

    public String getResponse() {
        return response;
    }

    public FileScannerResult setResponse(String response) {
        this.response = response;
        return this;
    }

    public FileScannerResult setHttpCode(int httpCode) {
        this.httpCode = httpCode;
        return this;
    }

    public FileScannerResult setLevel(int level) {
        this.level = level;
        return this;
    }

    public int getRet() {
        return ret;
    }

    public FileScannerResult setRet(int ret) {
        this.ret = ret;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public FileScannerResult setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public String getData() {
        return data;
    }

    public FileScannerResult setData(String data) {
        this.data = data;
        return this;
    }

    public String getMalware() {
        return malware;
    }

    public FileScannerResult setMalware(String malware) {
        this.malware = malware;
        return this;
    }

    public String getExts() {
        return exts;
    }

    public FileScannerResult setExts(String exts) {
        this.exts = exts;
        return this;
    }

    public FileScannerResult setVirus(boolean virus) {
        this.virus = virus;
        return this;
    }
}
